import request from '@/utils/request'

// 查询定期公告列表
export function listListedRegularNotice(query) {
  return request({
    url: '/regularNotice/listedRegularNotice/list',
    method: 'get',
    params: query
  })
}

// 查询定期公告详细
export function getListedRegularNotice(id) {
  return request({
    url: '/regularNotice/listedRegularNotice/' + id,
    method: 'get'
  })
}

// 保存定期公告
export function saveListedRegularNotice(data) {
  return request({
    url: '/regularNotice/listedRegularNotice/save',
    method: 'post',
    data: data
  })
}

// 删除定期公告
export function delListedRegularNotice(id) {
  return request({
    url: '/regularNotice/listedRegularNotice/' + id,
    method: 'delete'
  })
}

// 导出定期公告
export function exportListedRegularNotice(query) {
  return request({
    url: '/regularNotice/listedRegularNotice/export',
    method: 'get',
    params: query
  })
}
